#include "ExampleFrameListener.h"

class SimpleOopListener : public ExampleFrameListener
{
public:
	// Constructor takes a RenderWindow because it uses that to determine input context
	SimpleOopListener(	RenderWindow* win,
						Camera* cam, 
						bool bufferedKeys = false,
						bool bufferedMouse = false,
						bool bufferedJoy = false );

	virtual bool frameStarted(const FrameEvent& evt);
	virtual bool processUnbufferedKeyInput(const FrameEvent& evt);

	void updateCollision(Real timeDelta);

protected:

	Real	m_fTimeoutDelay;

	bool	m_bSBVisable;				// whole visible flag.
	bool	m_bShowBoundings[5];		// visible flags for the bounding boxes.
	int		m_nSBCounter;				// counter to determine showed bounding box.
};